{% extends 'myadmin/index.html'%}

{% block con %}
<div style="color:#fff">

    <div class="widget-body  am-fr">

    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
        <div class="am-form-group">
            <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                    <button type="button" id="back" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 返回</button>
                </div>
            </div>
        </div>
    </div>
     <form>
    <!--<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">-->
        <!--<div class="am-form-group tpl-table-list-select">-->
            <!--<select data-am-selected="{btnSize: 'sm'}" style="display: none;" name="types">-->
               <!--<option value="all" {% if request.GET.types == 'all' %} selected {% endif %}>全局搜索</option>-->
              <!--<option value="phone" {% if request.GET.types == 'phone' %} selected {% endif %}>手机号</option>-->
              <!--<option value="id" {% if request.GET.types == 'id' %} selected {% endif %}>ID</option>-->
              <!--<option value="nikename" {% if request.GET.types == 'nikename' %} selected {% endif %}>昵称</option>-->
              <!--<option value="email" {% if request.GET.types == 'email' %} selected {% endif %}>邮箱</option>-->
            <!--</select>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="am-u-sm-12 am-u-md-12 am-u-lg-3">-->

        <!--<div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">-->
            <!--<input type="text" class="am-form-field" name="keyword" value="{{request.GET.keyword}}">-->
            <!--<span class="am-input-group-btn">-->
                <!--<button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"></button>-->
              <!--</span>-->
        <!--</div>-->

    <!--</div>-->
     </form>
    <div class="am-u-sm-12">
        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
            <thead>
                <tr>
                    <th>商品ID</th>
                    <th>缩略图</th>
                    <th>商品名称</th>
                    <th>数量</th>
                    <th>单价</th>
                    <!--<th>年龄</th>-->
                    <!--<th>性别</th>-->
                    <th>状态</th>
                    <!--<th>注册时间</th>-->
                    <!--<th>操作</th>-->
                </tr>
            </thead>
            <tbody>
            {% for i in order%}
                <tr class="gradeX">
                    <td class="am-text-middle">{{i.goodsid.id}}</td>
                    <td>
                        <img src="{{i.goodsid.pic_url}}" class="tpl-table-line-img" alt="">
                    </td>
                    <td class="am-text-middle nikename" id="nikename" uid="{{i.id}}">{{i.goodsid.title}}</td>
                    <td class="am-text-middle">{{i.num}}</td>
                    <td class="am-text-middle">{{i.goodsid.price}}</td>
                    <!--<td class="am-text-middle">{{i.age}}</td>-->
                    <!--<td class="am-text-middle">-->
                        <!--{% if i.sex == '0' %}-->
                        <!--女-->
                        <!--{% elif i.sex == '1' %}-->
                        <!--男-->
                        <!--{% else %}-->
                        <!--保密-->
                        <!--{%endif%}-->
                    <!--</td>-->
                    <td class="am-text-middle">
                        <select uid="{{ i.id }}" class="select-status" style="color:red;">
                        <option value="0" {% if i.status == 0 %} selected {% endif %}>新品</option>
                        <option value="1" {% if i.status == 1 %} selected {% endif %}>热卖</option>
                        </select>
                    </td>
                    <td class="am-text-middle">{{i.addtime}}</td>
                    <!--<td class="am-text-middle">-->
                        <!--<div class="tpl-table-black-operation">-->
                            <!--<a href="{% url 'user_edit' %}?id={{i.id}}">-->
                                <!--<i class="am-icon-pencil"></i> 编辑-->
                            <!--</a>-->
                            <!--<a href="{% url 'user_del' %}?id={{ i.id }}" class="tpl-table-black-operation-del">-->
                                <!--<i class="am-icon-trash"></i> 删除-->
                            <!--</a>-->
                        <!--</div>-->
                    <!--</td>-->
                </tr>
            {% endfor %}
                <!-- more data -->
            </tbody>
        </table>
    </div>
    <div class="am-u-lg-12 am-cf">

        <div class="am-fr">
            <ul class="am-pagination tpl-pagination">

            </ul>
        </div>
    </div>
</div>
</div>
<script>
    $('#back').click(function(){
        window.history.go(-1)
    })

</script>
{% endblock%}